<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="utf-8">
    <title>字典值列表--layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="/public/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="/public/css/public.css" media="all"/>
</head>
<body class="childrenBody">

<form class="layui-form minor">

    <input type="hidden" name="typeCode" id="typeCode" value="{{typeCode}}">

    <div class="layui-col-lg4 layui-col-sm6">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>字典值名称</label>
            <div class="layui-input-block">
                <input type="text" name="valName" id="valName" lay-verify="required" autocomplete="off"
                       placeholder="请输入" class="layui-input">
            </div>
        </div>
    </div>

    <div class="layui-form-item magt3" style="display: none">
        <label class="layui-form-label"><span style="color: red">*</span>字典值编码</label>
        <div class="layui-input-block">
            <input type="text" name="valCode" id="valCode" class="layui-input valCode"
                   lay-verify="required|code|valCode" placeholder="请输入">
        </div>
    </div>

    <div class="layui-form-item magt3">
        <label class="layui-form-label"><span style="color: red">*</span>字典值排序</label>
        <div class="layui-input-block">
            <input type="text" name="sortIndex" id="sortIndex" class="layui-input sortIndex" lay-verify="number"
                   placeholder="请输入">
        </div>
    </div>

    {{if typeCode == 'YWLX_T' || typeCode == 'YWLX_S' || typeCode == 'YWLX_G'}}
    <div class="layui-col-md12">
        <div class="layui-form-item">
            <label class="layui-form-label">费用类型</label>
            <input id="description" type="hidden"/>
            <div class="layui-input-block" id="descriptionHtml">
            </div>
        </div>
    </div>
    {{else if typeCode == 'FYLX'}}
    <div class="layui-col-md12">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">收款单位</label>
            <div class="layui-input-block">
                <select id="description" lay-search="">

                </select>
            </div>
        </div>
    </div>
    {{else if typeCode == 'JSR'}}
    <div class="layui-col-md12">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label"><span style="color: red">*</span>单位类型</label>
            <div class="layui-input-block">
                <select id="description" lay-verify="required">
                    <option value="">请选择</option>
                    <option value="1">个人</option>
                    <option value="2">单位</option>
                </select>
            </div>
        </div>
    </div>
    {{else}}
    <div class="layui-col-md12">
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">字典值描述</label>
            <div class="layui-input-block">
                <textarea placeholder="请输入字典值描述" name="description" class="layui-textarea description"></textarea>
            </div>
        </div>
    </div>
    {{/if}}
    <div class="layui-col-md12">
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" lay-submit="" lay-filter="addNews">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </div>


</form>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script type="text/javascript" src="dictValAdd.js"></script>
</body>
</html>